import { createApp } from 'vue';
import Antd from 'ant-design-vue';
import App from './App';
import 'ant-design-vue/dist/antd.css';
import Router from './utils/router';
import Axios from 'axios';
import Dialog from './utils/dialog';
import { ConfigProvider } from 'ant-design-vue'
// import NProgress from 'nprogress'

Axios.defaults.baseURL = "http://localhost:4729";
Axios.defaults.withCredentials = true;

Router.beforeEach((to, from, next) => {
    next();
})

Router.afterEach(() => {

})


const app = createApp(App);
app.config.productionTip = false;

app.use(ConfigProvider);
app.use(Antd);
app.use(Router);
app.use(Dialog);

app.mount("#app");